package com.itheima.test2;

public class Test2Innerclass {
    public static void main(String[] args) {
        /*私有成员内部类的演示:*/
        //Outer.Inner i = new Outer().new Inner();
        Outer o = new Outer();
        o.method();
    }
}



class Outer{

    private class Inner{
        public void show(){
            System.out.println("Inner...show");
        }
    }

    public void method(){
        Inner i = new Inner();
        i.show();
    }
}
